Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 Server Administration Documentation | 2025.2

# Form-delete triggers

Use the `form-delete` trigger type to create triggers that fire when users attempt to delete a form, after the form is parsed by the P4 Server, but before the form is deleted from the P4 Server database.

Example:

An administrator wants to enforce a policy that users are not to delete jobs from the system, but must instead mark such jobs as closed.

    #!/bin/sh

    echo "Jobs may not be deleted. Please mark jobs as closed instead."
    exit 1

This `form-delete` trigger fires on `job` forms only. To use the trigger, add the following line to the trigger table:

    sample9   form-delete  job  "nodeljob.sh"

Whenever a user attempts to delete a job, the request to delete the job is rejected, and the user is shown an error message.

Your search for returned results