delete_theme
delete_theme ( $stylesheet, $redirect = '' )
Parameters:- (string) stylesheet Stylesheet of the theme to delete.
- (string) redirect Redirect to page when complete.
Returns:- (bool|null|WP_Error) True on success, false if `$stylesheet` is empty, WP_Error on failure. Null if filesystem credentials are required to proceed.
Defined at: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Description
Removes a theme.