How can I remove an action link? I have a form that I'm creating and I'd like to get rid of the 'Add contract' button that is being put there automatically.
Is there something different I can do here:  

function my_module_theme($existing, $type, $theme, $path) {
  module_load_include('inc', 'my_module', 'includes/admin/my_module.admin.forms');

  return array(
    'my_module_setup_form_contract' =&gt; array(
      'render element' =&gt; 'form',
    ),
  );
}


Or is there some other hook I can use?  I've been looking in the theme_my_module_setup_form_contract and my_module_setup_form_contract, but it looks like it's too late there.

This is for 7, btw.
You can remove local actions within hook_menu_alter().

If this is a generic action it will be removed on all of those forms. E.g. local actions for nodes - changes would be seen on all content types.